package edu.hwadee.tests;

import org.hibernate.SessionFactory;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import edu.hwadee.entity.Area;
import edu.hwadee.serviceImpl.AreaServiceImpl;

public class AreaTest {
	@Test
	public void test() {
		ApplicationContext aContext = new ClassPathXmlApplicationContext("applicationContext.xml");
		AreaServiceImpl areaImpl = (AreaServiceImpl) aContext.getBean("AreaServiceImpl");
		//areaImpl.search(123456);
		/*Area area = new Area();
		area.setAreaId(1);
		area.setArea(null);
		area.setAreaName("QQ");
		area.setLevel((short)1);
		area.setPinyin("qq");
		boolean s = areaImpl.add(area);
		System.out.println(s);
		*/
		//areaImpl.getList();
		
	}

}
